import React, {Component} from 'react';
import Nav from "../../components/Nav";
import RouterView from "../../router/RouterView";
import {getNavData} from "../../router/zhoukao2RouterConfig";

class HocIndex extends Component {
  render() {
    return (
      <div>
        {this.props.routes&& <Nav viewList={getNavData(this.props.routes)}/>}

        <RouterView routes={this.props.routes}/>
      </div>
    );
  }
}

export default HocIndex;
